Statements and Functions > Close

Close

General Operation Statement

Syntax samples

Close <file ID>

Close Arrival_File

Description

Closes a file that has previously been written to with Write, Writeline, Xwrite, or read with Read. Use Close when finished with a file to free system resources. A file will automatically be re-opened to be read or written if it has been closed. All opened files are automatically closed at the end of a simulation. When you are using many external files and you want to conserve system resources, this statement is especially helpful.

Valid In

Any logic.

Components

<file ID>

The file ID of the desired file as defined in the External Files editor.

See Also

Read, Write, Writeline, Xwrite, and Reset.


 

© 2016 ProModel Corporation • 556 East Technology Avenue • Orem, UT 84097 • Support: 888-776-6633 • www.promodel.com